#include <iostream>
#include <fstream>
#include <ctime>
using namespace std;
unsigned int st = clock();
int main()
{
    int f_n[5000], k, i, a;
    ifstream f("m2.txt");
    if(f.is_open())
    {
        for (i = 0; i<5000; i++)
        {
            f >> f_n[i];
            cout << f_n[i] << endl;
        }
    }

    for (int i = 0; i < 5000; i++)
    {
        k = 0;
        for (int i = 0; i < 5000; i++)
        {
            if (f_n[i] < f_n[i+1])
            {
                swap(f_n[i], f_n[i+1]);
                k++;
            }

        }
    cout << f_n[i] << endl;
    }
unsigned int ft = clock();
a = ft - st;
cout << a , "milsec"<< endl;
return 0;


}
